<?php
/* SVN FILE: $Id: index.php 53 2009-09-07 02:15:29Z phamshantuyet@gmail.com $ */
/**
*
* @author $Author: phamshantuyet@gmail.com $
* @version $Revision: 53 $
* @lastrevision $Date: 2009-09-07 09:15:29 +0700 (Mon, 07 Sep 2009) $
* @modifiedby $LastChangedBy: phamshantuyet@gmail.com $
* @lastmodified $LastChangedDate: 2009-09-07 09:15:29 +0700 (Mon, 07 Sep 2009) $
* @filesource $URL: https://ladybirdphp.googlecode.com/svn/trunk/website/ocm/index.php $
*/

$v_dir =  dirname( __FILE__);

define('APP_DIR', $v_dir.'/app');

define('DS', DIRECTORY_SEPARATOR);

//define('FW24H_ROOT', dirname(__FILE__));
define('FW24H_ROOT', 'D:/projects/ladybirdphp/website/fw24h4'); # duong dan den thu muc fw24h


$request_uri = preg_replace( '#^\/#', '', str_replace( array( str_replace( 'index.php', '', $_SERVER['SCRIPT_NAME']), '//', '?'.$_SERVER['QUERY_STRING']), '/', $_SERVER['REQUEST_URI']));

$_APP_PATH_INFO_ = array();

if( isset( $request_uri)){
	$_APP_PATH_INFO_ = explode( '/', $request_uri);
	$_GET['_request_uri'] = $request_uri;
}

include FW24H_ROOT.'/start.php';

$Dispatcher = new MainController();
$Dispatcher->dispatch( $_APP_PATH_INFO_);


//phpinfo( 32);

echo '<PRE>';
print_r( get_included_files());
echo memory_get_usage()/1024 . "\n"; // 36744 
exit();



